<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			//5. 声明一个不定参数的函数，计算所有传入参数的和。
			function Sum(...args){
							let sum=0;
							for(let i in args){
								sum+=args[i];
							}
							return sum;
						}
						console.log(Sum(3,1,9,5));
		</script>
	</body>
</html>
